/**
 * This is a class representing a government.
 * @author Master
 * @version $Revision: 1.0 $
 */
public class Government {

	/**
	 * Field TAXLIST.
	 */
	private static final double[] TAXLIST={0.1, 0.3, 0.2, 0.08,
		0.12, 0.05, 0.4, 0.07, 0.14, 0.23, 0.17, 0.34};

	/**
	 * Field tax.
	 */
	public static double Tax=0.0;

	/**
	 * Field place.
	 */
	private static int Place=0;

	/**
	 * Constructor for Government.
	 * @param place int
	 */
	public Government(int place){
    	setPlace(place);
    	Tax = TAXLIST[0];
   }

	/**
	 * Method setTax.
	 */
	public void toSetTax(){
    	PlayerInfo.setMoney((int) (PlayerInfo.getMoney() * TAXLIST[getPlace()]));
    }

	/**
	 * Method getRate.
	
	 * @return double */
	public double getRate(){
    	return TAXLIST[getPlace()];
    }
	
	/**
	 * Method toString.
	
	 * @return String */
	@Override
	public String toString() {
		return "Government []";
	}

	/**
	 * Method getPlace.
	 * @return int
	 */
	public static int getPlace() {
		return Place;
	}

	/**
	 * Method setPlace.
	 * @param place int
	 */
	public static void setPlace(int place) {
		Place = place;
	}
}


